From a8ab5b5345d5fa3dbb3d865268b70955a7445022 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 6 Dec 2023 00:23:21 -0800
Subject: feat(manga): mal reading time

---
 src/routes/user/[user]/+page.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/routes/user/[user]/+page.svelte')

diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte
index 858e6aec..171d4e5c 100644
--- a/src/routes/user/[user]/+page.svelte
+++ b/src/routes/user/[user]/+page.svelte
@@ -1,5 +1,6 @@
 <script lang="ts">
 	import { user, type User } from '$lib/AniList/user';
+	import { estimatedDayReading } from '$lib/Media/manga.js';
 	import { onMount } from 'svelte';
 
 	export let data;
@@ -50,7 +51,7 @@
 
 			This user has watched {(userData.statistics.anime.minutesWatched / 60 / 24).toFixed(1)} days of
 			anime and read
-			{((userData.statistics.manga.chaptersRead * 8.58) / 60 / 24).toFixed(1)} days of manga.
+			{estimatedDayReading(userData.statistics.manga.chaptersRead).toFixed(1)} days of manga.
 		</div>
 	</div>
 {/if}
-- 
cgit v1.2.3

